﻿using System.ComponentModel.DataAnnotations;

namespace PublisherManagementSystem.Models
{
	public class Province
	{
		public int ProvinceID { get; set; }

		[Required(ErrorMessage = "省份名称不能为空")]
		[Display(Name = "省份")]
		[StringLength(50, ErrorMessage = "省份名称不能超过50个字符")]
		public string ProvinceName { get; set; }

		// 导航属性
		public virtual ICollection<City> Cities { get; set; }
	}
}
